package com.aric.springbootmusic.utils;

import java.security.NoSuchAlgorithmException;
import java.util.HashMap;

public class SecretKey {
    public static final HashMap<String, String> map;
    static {
        try {
            map = RSAEncryptUtil.generatePublicPrivateKeys();
        } catch (NoSuchAlgorithmException e) {
            throw new RuntimeException(e);
        }
    }

    public static String getPublicKey(){
        return map.get("publicKey");
    }

    public static String getPrivateKey(){
        return map.get("privateKey");
    }
}
